package com.dq.repository.user;

import com.dq.domain.sys.user.SignOn;
import com.dq.domain.sys.user.user.base.SysUser;
import com.dq.domain.sys.user.UserSignOn;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liuhui
 * @date 2019/9/17 0017 17:32:28
 */
@Repository
public interface UserSignInRepository extends JpaRepository<UserSignOn, Long> {

    List<UserSignOn> findByUser(SysUser user);

    UserSignOn getByUserAndSignOn(SysUser user, SignOn signIn);

}
